package com.stu.wgt.test.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.stu.wgt.test.bean.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wgt
 * @since 2024-01-20
 */
@Service
public interface AdminService extends IService<Admin> {

    List<Admin> selectAllUser();

    List<Admin> selectByUsername(String username);

    List<Admin> selectById(int id);

    IPage<Admin> searchUsers(String query, int pageNum, int pageSize);

    int deleteUser(int id);

    int updateUser(Admin admin);

    int register(Admin admin);

    boolean login(String username, String password);

}
